import re

def is_valid(data):
    data = data.lower()
    pattern = r"\b(and|like|exec|insert|select|drop|grant|alter|delete|update|count|chr|mid|master|truncate|char|delclare|or)\b|(\*|;)"
    if(re.search(pattern,data)):
        return False
    return True